<?php

namespace app\admin\validate;

use think\Validate;

class Manager extends Validate
{
   
	protected $rule = [
        'uname'    =>  'require|max:100|unique:manager',
        'password' =>  'require|min:6',
    ];
    
   
    protected $message = [
        'uname.require' => '用户名不能为空',
        'uname.unique' => '用户名已存在',
        'password.require' => '密码必须填写',
        'password.min' => '密码长度最少6位',
    ];
    protected $scene = [
        'save'  =>  ['uname','password'],
        'edit'  =>  ['uname','password'=>'min:6'],
    ];
}
